package com.infnoon.provider;

import com.infnoon.example.common.service.UserService;
import com.infnoon.rpc.registry.LocalRegistry;
import com.infnoon.rpc.server.HttpServer;
import com.infnoon.rpc.server.VertxHttpServer;

/**
 * 简易服务提供者示例
 */
public class BaseProviderExample {
    public static void main(String[] args) {
        // 注册服务
        // todo UserService || UserServiceImpl ??
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动 Web 服务
        // todo 修改 port 端口
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8010);
    }
}
